var TextBox = Z.element.TextBox;
var Box = Z.element.Box;

onLoad( function( body ){
	var count = 0;
	var txt = TextBox( body, {
		left: 0,
		top: 0,
		width: 100,
		height: 30
	} );
	var bg = Box( body, {
		left: 0,
		top: 100,
		width: 100,
		height: 100,
		background_color: "#808080"
	} );
	bg.onClick( function( e ){
		var nb = Box( body, {
			left: 200,
			top: 100*count,
			width: 100,
			height: 80,
			background_color: "#F0F0F0"
		} );
		var str = txt.value( );
		nb.onClick( function( e ){
			alert( str );
		} );
		count++;
	} );
} );
